/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package message;

import SingleLinkedList.MySingleList;
import SingleLinkedList.SingleNode;
import java.io.*;

/**
 *
 * @author Administrator
 */
public class Attachment implements AttachmentInterface
{
    private MySingleList pathes;        //single linked list which contains all pathes of attachment files
    /**
     * Constructor to initialize new list of attachments
     */
    public Attachment()
    {
        pathes = new MySingleList();
    }
    /**
     * This method is used to get attachment list
     * @return result of type MySingleList
     */
    public MySingleList getPathes()
    {
        return pathes;
    }
    /**
     * This method is used to set attachment list
     * @param pathes new attachment list
     */
    public void setPathes(MySingleList pathes)
    {
        this.pathes = pathes;
    }
    /**
     * This method is used to add path to attachment list
     * @param path
     */
    public void addPath(String path)
    {
        pathes.addElement(path);
    }


}
